package com.example.threaddemo;

import lombok.extern.slf4j.Slf4j;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description
 * @Date 2021/8/8
 * @Created by Jonathan
 */
@Slf4j
public class ThreadException implements Runnable {
    @Override
    public void run() {
        log.info("hello world");
        throw new RuntimeException();
    }

    public static void main(String[] args) {
        /*new Thread(new ThreadException()).start();
        for (int i = 0; i < 1000; i++) {
            log.info("---:{}", i);
        }*/
        List<Integer> list = new ArrayList<>();
        list.add(1);
        list.add(2);
        list.add(3);
        list.add(4);
        for (Integer i : list) {
            if (i == 3) continue;
            System.out.println("i->" + i);
        }
    }
}
